<template>
  <div class="loading-state">
    <div class="loading-spinner">
      <van-loading type="spinner" :size="size" color="#409eff" />
    </div>
    <div v-if="message" class="loading-message">{{ message }}</div>
  </div>
</template>

<script setup>
import { Loading } from 'vant';

const props = defineProps({
  size: {
    type: [String, Number],
    default: 40
  },
  message: {
    type: String,
    default: ''
  }
});
</script>

<style scoped>
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 200px;
}

.loading-spinner {
  margin-bottom: 16px;
}

.loading-message {
  font-size: 14px;
  color: #666;
}
</style>